package com.example.my_model.aruoterservice;

import android.content.Context;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.blankj.utilcode.util.SPUtils;
import com.example.common.providerservice.CheckLoginAPI;

@Route(path = "/user/checklogin" ,name = "获取用户登录校验")
public class CheckLoginApiImpl implements CheckLoginAPI {
    @Override
    public boolean checkLogin() {
        return SPUtils.getInstance().getLong("userId",0l)!=0l;
    }

    @Override
    public long getUserId() {
        return SPUtils.getInstance().getLong("userId",0l);
    }


    @Override
    public void init(Context context) {

    }
}
